<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnTypeInTaskClockTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task_clock')
            ->addColumn('type','enum',['values' => 'review, to_do', 'default' => 'review', 'comment' => '时间提醒任务类型'])
            ->save();
    }

    public function down()
    {
        $this->table('task_clock')
            ->removeColumn('type')
            ->save();
    }
}
